/**
 * 网络-接口
 */
import request from '@/utils/axios'

/**
 * 获取网络接口信息
 * @returns {*}
 */
export function reqGetIfaceData() {
    return request.get('/network/getIfaceInfo')
}

/**
 * 获取网络接口详情
 * @returns {*}
 */
export function reqGetIfaceDetailByName(faceName) {
    return request.get(`/network/getProtoInfo_static?ifaceName=${faceName}`)
}

/**
 * 获取网络接口信息
 * @returns {*}
 */
export function reqSetIface(data) {
    return request.post('/network/iface_set',data)
}

/**
 * 重启网络模块
 * @returns {*}
 */
export function reqReset() {
    return request.post('/system/restartNetwork')
}

